package com.nhxcz.bigdataweb.controller;

import com.nhxcz.bigdataweb.entity.Move;
import com.nhxcz.bigdataweb.entity.Stay;
import com.nhxcz.bigdataweb.service.serviceImpl.MoveService;
import com.nhxcz.bigdataweb.service.serviceImpl.StayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;

public class StayController {

    @Autowired
    public StayService stayService;

    @ResponseBody
    @RequestMapping("/stay")
    public ArrayList<Stay> stay(){
        ArrayList<Stay> data = stayService.stay();
        return data;
    }
}
